﻿using CPPEI.Coolzon.Core.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Core.Repositories
{
    public interface IVersionFileRepository
    {
        /// <summary>
        /// 增加设计文件信息
        /// </summary>
        bool AddVersionFile(DbContext context, VersionFile model);
        /// <summary>
        /// 更新设计文件信息
        /// </summary>
        bool UpdateVersionFileById(DbContext context, VersionFile model);
        /// <summary>
        /// 删除设计文件信息
        /// </summary>
        bool DeleteVersionFileById(DbContext context, Guid Id);
        /// <summary>
        /// 得到设计文件信息对象实体
        /// </summary>
        VersionFile GetVersionFileById(DbContext context, Guid Id);
        /// <summary>
        /// 获得设计文件数据列表
        /// </summary>
        PagedList<VersionFile> GetVersionFileList(DbContext context, int start,int limit);

        /// <summary>
        /// 是否存在该记录
        /// </summary>
        /// <param name="fileFullName"></param>
        /// <returns></returns>
        bool Exists(DbContext context,string fileFullName);
    }
}
